Fix the unit test to match the new way of allocating VNC ports.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 9 Aug 2006 09:13:37 +0000 (10:13 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 9 Aug 2006 09:13:37 +0000 (10:13 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xm/tests/test_create.py

index 2aa13549bcd28de58b33f72eb32f9c38affc5c1a..c3b68a00d3e0f418ec7e5aa9f5963dc11c7c0e11 100644 (file)
@@ -179,7 +179,8 @@ ne2000=0
 
                  'extra'       : ('VNC_VIEWER=%s:%d ' %
                                   (xen.xm.create.get_host_addr(),
-                                   xen.xm.create.VNC_BASE_PORT + 1)),
+                                   xen.xm.create.VNC_BASE_PORT +
+                                   xen.xm.create.choose_vnc_display())),
                  'vnc'         : 1,
                  'vncviewer'   : 1,